﻿<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">设置</h1>
</div>
<div class="wrapper-md" ng-controller="settingsCtrl">
    <div class="panel panel-default">
        <div class="panel panel-default">
            <div class="panel-heading font-bold">设置</div>
            <div class="panel-body">
                <div class="form-group">

                    <label class="control-label pull-left m-t-xs">App Id</label>

                    <div class="col-md-2">
                        <input type="text" readonly class="form-control" id="appId" ng-model="appId" placeholder="App Id">
                    </div>

                    <label class="control-label pull-left m-t-xs">App Secrect</label>

                    <div class="col-md-2">
                        <input type="text" readonly class="form-control" id="appSecrect" ng-model="appSecrect" placeholder="App Secrect">
                    </div>

                    <div class="col-md-3">
                        <button ng-click="generateRandomCredential()" class="btn btn-default btn-addon"><i class="glyphicon glyphicon-random"></i>生成</button>
                        <button ng-click="addCredential()" class="btn btn-default btn-addon"><i class="icon icon-plus"></i>添加</button>
                        <button ng-click="refresh()" class="btn btn-success btn-addon"><i class="icon icon-refresh"></i>刷新</button>
                    </div>
                </div>
            </div>
        </div>

        <div class="table-responsive">
            <div ui-grid="credentialList" ui-grid-pagination style="min-height:420px"></div>
        </div>
    </div>
</div>